package com.webwork.lims.orders.dataobject;

import com.webwork.lims.common.dataobject.CtrlerAndTime;

public class Order {

	/**
	 * 运单ID
	 */
	private String orderId;
	
	/**
	 * 库存号
	 */
	private String sku;
	
	/**
	 * 数量
	 */
	private Integer amount;
	
	/**
	 * 区域
	 */
	private int zoneCode;
	
	/**
	 * 地址
	 */
	private String address;
	
	/**
	 * 收件人
	 */
	private String receiver;

	/**
	 * 联系方式
	 */
	private String phone;
	
	/**
	 * 创建人和时间
	 */
	private CtrlerAndTime create;
	
	/**
	 * 审核人和时间
	 */
	private CtrlerAndTime verify;
	
	/**
	 * 完成时间
	 */
	private CtrlerAndTime complete;
	
	/**
	 * 用于查询时间
	 */
	private String queryTime;
	
	/**
	 * 运单状态
	 */
	private OrderStatus status = OrderStatus.NOSET;
	private Integer statusCode;
	
	/**
	 * 运输单号
	 */
	private String transId;

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public int getZoneCode() {
		return zoneCode;
	}

	public void setZoneCode(int zoneCode) {
		this.zoneCode = zoneCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public CtrlerAndTime getCreate() {
		return create;
	}

	public void setCreate(CtrlerAndTime create) {
		this.create = create;
	}

	public CtrlerAndTime getVerify() {
		return verify;
	}

	public void setVerify(CtrlerAndTime verify) {
		this.verify = verify;
	}

	public CtrlerAndTime getComplete() {
		return complete;
	}

	public void setComplete(CtrlerAndTime complete) {
		this.complete = complete;
	}

	public String getQueryTime() {
		return queryTime;
	}

	public void setQueryTime(String queryTime) {
		this.queryTime = queryTime;
	}

	public OrderStatus getStatus() {
		return status;
	}

	public void setStatus(OrderStatus status) {
		this.status = status;
	}
	
	public void setStatus(Integer status) {
		this.status = OrderStatus.fromCode(status);
	}

	public Integer getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(Integer statusCode) {
		this.statusCode = statusCode;
	}

	public String getTransId() {
		return transId;
	}

	public void setTransId(String transId) {
		this.transId = transId;
	}
	
}
